package com.imcoke.abchat.web.service;

import com.imcoke.abchat.domain.*;
import com.imcoke.abchat.domain.json.*;
import org.springframework.ui.Model;

import java.io.IOException;

/**
 * @Author ccoke
 * @Description
 * @Date: 20:54 2017-11-27
 */
public interface IUserService {

    ResultBody firstGetUser(JsonRegister jsonRegister) throws Exception;

    Boolean secondGetUser(String token,StringBuilder message) throws IOException;

    ResultBody login(JsonLogin jsonLogin, Model model);

    ResultBody firstGetForget(JsonEmail jsonEmail) throws Exception;

    Boolean secondGetForget(String token);

    ResultBody resetPassword(JsonReset jsonReset,Model model);

    ResultBody firstEmail(JsonEmail jsonEmail) throws Exception;

    Boolean secondEmail(String token, Model model) throws IOException;

    ResultBody modifyPassword(JsonPassword jsonPassword);

    ResultBody modifyBasic(JsonBasicUser jsonBasicUser);

    ResultBody checkUsername(String username);

    ResultBody checkEmail(String email);
}
